package com.ruoyi.common.enums;


/**
 * 常用状态
 *
 * @author lu
 * @since 2019-05-30 16:36
 */
public enum PayDescTxtEnum {
	WX_MIN(1, "微信小程序订单"), WX_WEB(2, "微信公众号订单"),
	WX_WAP(3, "微信h5订单"),WX_APP(4, "微信App订单"),
	;

	private Integer tradeType;
	private String descTxt;

	PayDescTxtEnum(Integer tradeType, String descTxt) {
		this.tradeType = tradeType;
		this.descTxt = descTxt;
	}

	public static String getTypeByIdentify(Integer tradeType) {
		PayDescTxtEnum[] changeHandleEnums = values();
		for (PayDescTxtEnum dressValue : changeHandleEnums) {
			if(dressValue.getTradeType().equals(tradeType)){
				return dressValue.getDescTxt();
			}
		}
		return "";
	}


	public Integer getTradeType() {
		return tradeType;
	}

	public String getDescTxt() {
		return descTxt;
	}
}


